﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Chung/QLSV.Master" AutoEventWireup="true" CodeBehind="DiemDanh.aspx.cs" Inherits="proRFID_DiemDanh.DiemDanh.DiemDanh" %>
<asp:Content ID="Content1" ContentPlaceHolderID="contentHead" runat="server">
    <link href="CssDiemDanh.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentMain" runat="server">
<div style="text-align:center; width:100%" >
    <fieldset style="width:900px;">
        <legend>Điểm danh sinh viên</legend>
        <table align="center" style="text-align:center" class="border">
            <tr>
                <th>Ngày</th>
                <th>Buổi</th>
                <th>Giáo viên</th>
                <th>Môn</th>
                <th>Phòng</th>
                <th>Lớp</th>
              </tr>
            <tr>
                <td>
                    <asp:TextBox ID="txtNgayhoc" runat="server" TextMode="Date" 
                        AutoPostBack="True" ></asp:TextBox>
                </td>
                <td>
                    <asp:DropDownList ID="ddlBuoi" runat="server" CssClass="ddl">
                        <asp:ListItem>--Chọn buổi học--</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlGiaoVien" runat="server" CssClass="ddl">
                        <asp:ListItem>--Chọn giáo viên--</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlMon" runat="server" CssClass="ddl">
                        <asp:ListItem>--Chọn môn học--</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlPhong" runat="server" CssClass="ddl">
                        <asp:ListItem>--Chọn phòng--</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:DropDownList ID="ddlLop" runat="server" CssClass="ddl">
                        <asp:ListItem>--Chọn lớp--</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Button ID="cmd_xem" runat="server" onclick="cmd_xem_Click" Text="Xem" />
                </td>
            </tr>
            <tr>
                <td colspan="7">
                    <asp:Label ID="lbl_thongbao" runat="server" CssClass="Thongbao"></asp:Label>
                </td>
            </tr>
        </table>
        
        <br />
        <table align="center" class="border">
            <tr>
                <th width="80px">Mã SV</th>
                <th width="300px">Họ</th>
                <th width="150px">Tên</th>
                <th width="100px">Số lần quét thẻ</th>
            </tr>
            <asp:Repeater ID="rpt_danhsach" runat="server">
            <ItemTemplate>
            <tr>
                <td><%#Eval("MaSV") %></td>
                <td><%#Eval("HoSV") %></td>
                <td><%#Eval("TenSV")%></td>
                <td><a href="../Diemdanh/Chitiet.aspx?ID=<%#Eval("MaSV") %>&buoihoc=<%#Eval("BUOIHOC") %>&mon=<%#Eval("MAMH") %>&phong=<%#Eval("MAPHONG") %>&lop=<%#Eval("MALOP") %>&giaovien=<%#Eval("MAGV") %>&ngaygio=<%#Eval("ngay") %>&tensv=<%#Eval("TENSV") %>&mathe=<%#Eval("MATHE") %>"><%#Eval("SoLanQuet")%></a></td>
            </tr>
            </ItemTemplate>
            </asp:Repeater>
        </table>
    </fieldset>
</div>
</asp:Content>
